﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;

namespace ViSaw
{
    static class Program
    {
        public const string LOG_FILE_PATH = @"visaw.log";
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            
            if (args.Length!=1)
            {
                Log.Fatal("启动失败：" + "未指定图像文件！");
                MessageBox.Show("未指定图像文件！", "错误");
                return;
            }
            Application.Run(new FormViewer(args[0]));
        }
    }
}
